import request from '@/utils/request'

// 查询院系信息列表
export function listFaculties(query) {
  return request({
    url: '/system/faculties/list',
    method: 'get',
    params: query
  })
}

// 查询院系信息详细
export function getFaculties(facultiesId) {
  return request({
    url: '/system/faculties/' + facultiesId,
    method: 'get'
  })
}

// 新增院系信息
export function addFaculties(data) {
  return request({
    url: '/system/faculties',
    method: 'post',
    data: data
  })
}

// 修改院系信息
export function updateFaculties(data) {
  return request({
    url: '/system/faculties',
    method: 'put',
    data: data
  })
}

// 删除院系信息
export function delFaculties(facultiesId) {
  return request({
    url: '/system/faculties/' + facultiesId,
    method: 'delete'
  })
}
